//
//  XHUserCommentDetailCell.m
//  elxc-jl
//
//  Created by 冷山 on 16/5/11.
//  Copyright © 2016年 lexingsoft. All rights reserved.
//

#import "XHUserCommentDetailCell.h"

@implementation XHUserCommentDetailCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    [self.ui_star1 setImage:[UIImage imageNamed:@"dingdan_icon_xing2"] forState:UIControlStateNormal];
    [self.ui_star1 setImage:[UIImage imageNamed:@"dingdan_icon_xing"] forState:UIControlStateSelected];
    
    
    [self.ui_star2 setImage:[UIImage imageNamed:@"dingdan_icon_xing2"] forState:UIControlStateNormal];
    [self.ui_star2 setImage:[UIImage imageNamed:@"dingdan_icon_xing"] forState:UIControlStateSelected];
    
    
    [self.ui_star3 setImage:[UIImage imageNamed:@"dingdan_icon_xing2"] forState:UIControlStateNormal];
    [self.ui_star3 setImage:[UIImage imageNamed:@"dingdan_icon_xing"] forState:UIControlStateSelected];
    
    
    [self.ui_star4 setImage:[UIImage imageNamed:@"dingdan_icon_xing2"] forState:UIControlStateNormal];
    [self.ui_star4 setImage:[UIImage imageNamed:@"dingdan_icon_xing"] forState:UIControlStateSelected];
    
    
    [self.ui_star5 setImage:[UIImage imageNamed:@"dingdan_icon_xing2"] forState:UIControlStateNormal];
    [self.ui_star5 setImage:[UIImage imageNamed:@"dingdan_icon_xing"] forState:UIControlStateSelected];
    self.la_viewHeight.constant = 0.5;
}

- (CGFloat)commentHeight
{
    CGSize size = [self.ui_commentContent sizeThatFits:CGSizeMake(self.ui_commentContent.frame.size.width,MAXFLOAT)];
    CGRect frame = [self frame];
    frame.size.height = size.height + 100;
    self.frame = frame;
    return frame.size.height;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
